<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"  
                xmlns:h="http://java.sun.com/jsf/html"  
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../templates/StaffTemplate.xhtml">

    <ui:define name="nav_menu">
        <p:menubar model="#{staffChangeInitialPasswordManagedBean.staffMenuModel}"/>
    </ui:define>
    <ui:define name="content">
        <h:form>
            <p:panel id="panel" header="Search">

                <h:panelGrid columns="2" cellpadding="10">
                    <h:outputLabel for="id" style="font-weight: bold" value="ID: " />
                    <h:inputText  label="ID"  id="id" value="#{stakeholderManagerBeanid}">                       
                    </h:inputText>

                    <h:outputLabel for="username" style="font-weight: bold" value="Username: " />
                    <h:inputText label="Username"  id="username" value="#{stakeholderManagerBean.selectedStakeholder.username}">
                    </h:inputText>

                    <h:outputLabel for="corpName" style="font-weight: bold" value="Corporation Name: " />
                    <h:inputText label="Corporation Name"  id="corpName" value="#{stakeholderManagerBean.selectedStakeholder.corpName}">                       
                    </h:inputText>

                    <h:outputLabel for="bizRegNumber" style="font-weight: bold" value="Business Registration Number: " />
                    <h:inputText label="Business Registration Number"  id="bizRegNumber" value="#{stakeholderManagerBean.selectedStakeholder.bizRegNumber}">                       
                    </h:inputText>

                    <h:outputLabel for="address" style="font-weight: bold" value="Address: " />
                    <h:inputText label="Address"  id="address" value="#{stakeholderManagerBean.selectedStakeholder.address.streetName}">                       
                    </h:inputText>

                    <h:outputLabel for="phoneNumber" style="font-weight: bold" value="Phone Number: " />
                    <h:inputText label="phoneNumber"  id="phoneNumber" value="#{stakeholderManagerBean.selectedStakeholder.corpContactNumber}">                       
                    </h:inputText>

                    <h:outputLabel for="email" style="font-weight: bold" value="Email: " />
                    <h:inputText label="Email"  id="email" value="#{stakeholderManagerBean.selectedStakeholder.corpEmail}">                       
                    </h:inputText>

                    <h:outputLabel for="fax" style="font-weight: bold" value="Fax: " />
                    <h:inputText label="Fax"  id="fax" value="#{stakeholderManagerBean.selectedStakeholder.corpEmail}">                       
                    </h:inputText>
                </h:panelGrid>
                <p:commandButton id="btn" value="Search" action="staff/TCubeViewStakeholderSearchResult?faces-redirect=true" update="panel" actionListener="#{stakeholderManagerBean.search}" />
            </p:panel>
        </h:form>
    </ui:define>
</ui:composition>